import { App, Directive } from "vue";
import draggable from './module/draggable'
import waterMarker from "./module/waterMarker";

const directiveList: { [key: string]:Directive} = {
    draggable,
    waterMarker
}

const directives = {
    install:(app:App<Element>) => {
        Object.keys(directiveList).forEach(key => {
            app.directive(key,directiveList[key])
        })
    }
}

export default directives